﻿<?php
require(dirname(__FILE__)."/../inc/common.inc.php");
header("Content-Type:text/html;charset=utf-8"); 
admin(0);
?>
<!DOCTYPE HTML>
<html style="overflow-y:hidden;">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<script type="text/javascript" src="js/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title><?=$webdb['title']?></title>
<meta name="keywords" content="<?=$webdb['title']?>">
<meta name="description" content="<?=$webdb['title']?>">
</head>
<body>


<div style="height:98px;background:url(images/header_bj.png) repeat-x; position:relative">
	<div><img src="images/logo.png"></div>
    
    <span class="Hui-userbox"><span class="c-white"><?=$adminarr['title']?>：<?=$adminarr['u_name']?></span> 
		
		<a class="btn btn-info  radius ml-10" href="../index.php" title="退出"><i class="icon-home"></i> 返回首页</a>
			
		
		<a class="btn btn-danger radius ml-10" href="index.php?action=quit" title="退出"><i class="icon-off"></i> 退出</a></span> <a aria-hidden="false" class="Hui-nav-toggle" id="nav-toggle" href="#"></a> 
    
</div>
<div class="cl Hui-main" style="margin-top:48px;">
  <aside class="Hui-aside" style=" background:#2F4E9A url(images/left_bg.png) no-repeat center bottom;">
    <input runat="server" id="divScrollValue" type="hidden" value="" />
    <div class="menu_dropdown bk_2">
    <?php
    $adminarr['u_ssion']=$adminarr['u_ssion']?$adminarr['u_ssion']:0;
    $query = $db->query("select m_title,m_id,m_class,m_url from {$pre}menu where m_fid='0' ORDER BY m_int asc  ");
	  while($rs = $db->fetch_array($query)){

      $submennu=array();
  		$query1 = $db->query("select m_title,m_id,m_class,m_url from {$pre}menu where m_fid='".$rs['m_id']."' and  m_id in ({$adminarr['u_ssion']}) order by m_id asc  ");
  		while($rs1 = $db->fetch_array($query1)){
  		 $submennu[]=$rs1;
  		}
  		if ($submennu){
  		$idclass=explode(',',$rs['m_class']);
  	?>
        <dl id="menu-<?=$idclass[0]?>">
          <dt><i class="icon-<?=$idclass[1]?>"></i> <?=$rs['m_title']?><b></b></dt>
          <dd>
            <ul>
           <?php
           foreach ($submennu as $key => $rs1) {
  				?>			
  				<li><a _href="<?=$rs1['m_url']?>" href="javascript:;"><?=$rs1['m_title']?></a></li>         
          <?php
          }
          ?>
            </ul>
          </dd>
        </dl>
  <?php
    }
}
?>
     <dl id="menu-system">
        <dt><i class="icon-lock"></i> <a _href="admin_pass.php" href="javascript:;" style="color:#FFF">修改密码</a></dt>
      </dl>

    </div>
  </aside>
  <div class="dislpayArrow"><a class="pngfix" href="javascript:void(0);"></a></div>
  <section class="Hui-article">
    <div id="Hui-tabNav" class="Hui-tabNav">
      <div class="Hui-tabNav-wp">
        <ul id="min_title_list" class="acrossTab cl">
          <li class="active"><span title="我的桌面" data-href="welcome.php">我的桌面</span><em></em></li>
        </ul>
      </div>
      <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default btn-small" href="javascript:;"><i class="icon-step-backward"></i></a><a id="js-tabNav-next" class="btn radius btn-default btn-small" href="javascript:;"><i class="icon-step-forward"></i></a></div>
    </div>
    <div id="iframe_box" class="Hui-articlebox" style="height:95%;-webkit-overflow-scrolling: touch;">
      <div class="show_iframe">
        <div style="display:none" class="loading"></div>
        <iframe scrolling="yes" frameborder="0" src="welcome.php" id="iframe-div"></iframe>
      </div>
    </div>
  </section>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/Validform_v5.3.2_min.js"></script> 
<script type="text/javascript" src="layer/layer.min.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script type="text/javascript" src="js/H-ui.admin.js"></script>
</body>
</html>